﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbCreditMovieBaseTest and is intended
    ///     to contain all TmdbCreditMovieBaseTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbCreditMovieBaseTest
    {
        /// <summary>
        ///     A test for TmdbCreditMovieBase Constructor
        /// </summary>
        [TestMethod]
        public void TmdbCreditMovieBaseConstructorTest()
        {
            var target = new TmdbCreditMovieBase();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Adult
        /// </summary>
        [TestMethod]
        public void AdultTest()
        {
            var target = new TmdbCreditMovieBase();
            bool expected = new Random().Next( 0, Int32.MaxValue ) % 2 == 0;
            target.Adult = expected;
            bool actual = target.Adult;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}